import request from '@/utils/request'

// 查询工作报告列表
export function listWorkReport(query) {
  return request({
    url: '/system/workreport/list',
    method: 'get',
    params: query
  })
}

// 获取工作报告内容
export function getWorkReport(id) {
  return request({
    url: '/system/workreport/get/' + id,
    method: 'get'
  })
}

// 保存工作报告
export function setWorkReport(data) {
  return request({
    url: '/system/workreport/save',
    method: 'post',
    data
  })
}

// 删除工作报告
export function delWorkReport(ids) {
  return request({
    url: '/system/workreport/delete/' + ids,
    method: 'delete'
  })
}

// 查询批阅记录列表
export function listReportRecord(query) {
  return request({
    url: '/system/work/report/record/list',
    method: 'get',
    params: query
  })
}

// 保存批阅记录
export function setReportRecord(data) {
  return request({
    url: '/system/work/report/record/save',
    method: 'post',
    data
  })
}

// 删除批阅记录
export function delReportRecord(ids) {
  return request({
    url: '/system/work/report/record/delete/' + ids,
    method: 'delete'
  })
}

// 查询任务
export function listTask(data) {
  return request({
    method: 'post',
    url: '/system/task/reportList',
    data
  })
}
